package com.hx.dc.service.impl;

import com.hx.dc.dao.MenuPlanMapper;
import com.hx.dc.entity.MenuPlan;
import com.hx.dc.service.SeeMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Lenovo on 2019/2/15.
 */

@Service("seemenuservice")
public class SeeMenuServiceImpl extends BaseServiceImpl<MenuPlan> implements SeeMenuService {

    @Autowired
   private MenuPlanMapper menuPlanMapper;

    @Override /*初始菜单*/
    public List<MenuPlan> SeeMenu(MenuPlan menuPlan) {
        return menuPlanMapper.SeeMenu(menuPlan);
    }

    @Override/*初始数据*/
    public List<MenuPlan> SeeMenuPlan(String id) {
        return menuPlanMapper.SeeMenuPlan(id);
    }

    @Override /*删除所有*/
    public int DeleteMenuPlan(String id) {
        System.out.print("2222222222222222222222222222222222");
      return  menuPlanMapper.DeleteMenuPlan(id);
    }

    @Override /*添加所有*/
    public int IsertMenuPlan(List list) {
        return  menuPlanMapper.InsertMenuPlan(list);
    }

    @Override /*删除小菜单*/
    public int deleteNote(String id) {
        return menuPlanMapper.deleteNote(id);
    }

    @Override /*修改小菜单*/
    public int AdemendsMenu(MenuPlan menuPlan) {
        return menuPlanMapper.AdemendsMenu(menuPlan);
    }

    @Override /*添加小菜单*/
    public int AddMenuPlan(String name) {
        return menuPlanMapper.AddMenuPlan(name);
    }


}
